﻿using System;
using System.Collections.Generic;
using System.Data;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Infrastructures
{
    public class SystemConfig
    {
        public Dictionary<string, string> Configs { get; set; }

        public static string Get(string key)
        {
            SystemConfig config = FactoryCreator.Create<SystemConfig>();
            var dic = config.Configs;
            if (!dic.ContainsKey(key))
                return string.Empty;

            return dic[key];
        }

    }
}
